const validateCount = (rule, value, callback) => {
  if (value < 1 || value > 8) {
    callback(new Error('子房型数量应在1~8之间'));
  }
  callback();
}

export default {
  type: {
    required: true,
    message: "请选择子房型",
    trigger: "change"
  },
  count: [{
    required: true,
    message: '请输入子房型数量',
    trigger: 'blur'
  }, {
    validator: validateCount,
    trigger: 'blur'
  }]
}
